package com.kinglone.back.role.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kinglone.back.role.dao.RoleMapper;
import com.kinglone.back.role.model.Role;
import com.kinglone.back.role.service.RoleService;

@Service("roleService")
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleMapper RoleDao;

	@Override
	public List<Role> getAllRoles() {
		return RoleDao.getAllRoles();
	}

	@Override
	public Role getRoleById(Long roleId) {
		return RoleDao.getRoleById(roleId);
	}


}
